package i_introduction._6_Data_Classes

import util.TODO
import util.doc6

fun todoTask6(): Nothing = TODO(
        """
        Convert 'JavaCode6.Person' class to Kotlin.
        Then add a modifier `data` to the resulting class.
        This annotation means the compiler will generate a bunch of useful methods in this class: `equals`/`hashCode`, `toString` and some others.
        The `task6` function should return a list of persons.
    """,
        documentation = doc6(),
        references = { JavaCode6.Person("Alice", 29) }
)
//[Person(name=Alice, age=29), Person(name=Bob, age=31)]
fun task6(): List<Person> {

//    todoTask6()

    val alice = Person("Alice",29)
    val bob = Person("Bob",31)

    return listOf(alice,bob)
}


data class Person(val name: String, val age: Int)

